package User;

import Book.BookList;
import Operation.IOperation;

public abstract class User {
    protected String name;//姓名
    public IOperation[] iOperations;//只是定义并没有初始化大小
    //存放操作
    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    //传入选择的操作序号
    public void doOperation(int choice, BookList bookList) {
        iOperations[choice].work(bookList);
    }
}
